package com.mos.iot.mqtt.listener;

import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class MqttTopicMethodManager {

    private final static Map<Method, MethodParam> METHOD_MAP = new ConcurrentHashMap<>();

    public static void add(Method method) {
        METHOD_MAP.computeIfAbsent(method, MethodParam::new);
    }

    public static MethodParam get(Method method) {
        return METHOD_MAP.get(method);
    }
}
